import { isDev } from '@/utils/back';

export const TIMEOUT = 10000;
export const API = (): string => {
  if (isDev()) return 'http://127.0.0.1:8080'; // replace with your API endpoint
  else return 'https://api.example.com'; // replace with your API endpoint
};

export const WS_API_URL =
  API().replace(/^http(s)?:\/\//, 'ws$1://') + '/connect';

export const IMAGE_URL = API() + '/public';
